#include "escal.h"
/* ******************************************************************
 * This file is part of the escal project and distributed under the
 * terms of the GNU General Public License Version 3
 * CopyRight (C) 2008 Epocher (xijiaosdq@gmail.com)
 * See COPYING file for licensing information.
 *******************************************************************/


#include "escal_gui.h"
#include "task.h"
#include "task_model.h"
#include "initializer.h"
#include <QApplication>
#include <QtGui>
#include <QtNetwork>
#include <QSettings>
#include <QTextStream>
#include <QString>
#include <cstdio>

namespace Escal{
	QString 	escalHome;
	QString 	dataHome;
	QDir 		*homeDir;
	QDir		*dataDir;
	EscalSettings 	*settings;
	Initializer 	*init;
	QTextStream	out(stdout);
}

using namespace Escal;
int main(int argc, char *argv[])
{
	QApplication app(argc, argv);
	init = new Initializer();
	init->initFolders();
	init->initSettings();
	EscalGui window;

	window.show();
	return app.exec();
}
